home *** CD-ROM | disk | FTP | other *** search
/ Exame Informatica 139 / Exame Informatica 139.iso / Internet / NVU / chrome / help.jar / content / help / help.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-06-21  |  19.5 KB  |  387 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://help/skin/sidebar.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  6.  
  7. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  8.  
  9. <?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
  10. <!DOCTYPE window [
  11.     <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  12.     %brandDTD;
  13.     <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
  14.     %helpDTD;
  15.     <!ENTITY % browserDTD SYSTEM "chrome://editor/locale/editor.dtd" >
  16.     %browserDTD;
  17.     <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  18.     %findDTD;
  19. ]>
  20.  
  21. <window id="help"
  22.         windowtype="mozilla:help"
  23.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  24.         width="700"
  25.         height="550"
  26.         persist="width height screenX screenY"
  27.         onload="init();"
  28.         onunload="uninitFindBar(); window.XULBrowserWindow.destroy();">
  29.  
  30.     <script type="application/x-javascript" src="chrome://help/content/toolbarCustomization.js"/>
  31.     <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  32.     <script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
  33.     <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  34.     <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  35.     <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  36.  
  37.     <stringbundle id="bundle_findBar" src="chrome://browser/locale/browser.properties"/>
  38.     
  39.     <menupopup id="backMenu" position="after_start"
  40.         onpopupshowing="return createBackMenu(event);"
  41.         oncommand="gotoHistoryIndex(event);"/>
  42.     <menupopup id="forwardMenu" position="after_start"
  43.         onpopupshowing="return createForwardMenu(event);"
  44.         oncommand="gotoHistoryIndex(event);"/>
  45.     <popupset id="contentAreaContextSet"/>
  46.     <popup id="toolbar-context-menu">
  47.       <menuitem command="cmd_CustomizeToolbars"
  48.                 label="&viewCustomizeToolbar.label;"
  49.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  50.     </popup>
  51.     <broadcasterset id="helpBroadcasters">
  52.         <broadcaster id="canGoBack"    disabled="true"/>
  53.         <broadcaster id="canGoForward" disabled="true"/>
  54.     </broadcasterset>
  55.     <commandset id="globalEditMenuItems"/>
  56.     <commandset id="selectEditMenuItems">
  57.         <command id="cmd_close" oncommand="close();"/>
  58.         <command id="Help:Home" oncommand="goHome();"/>
  59.         <command id="Help:Back" oncommand="goBack();"       observes="canGoBack"/>
  60.         <command id="Help:Forward" oncommand="goForward();" observes="canGoForward"/>
  61.         <command id="Help:ToggleSidebar" oncommand="toggleSidebar();"/>
  62.         <command id="cmd_closeWindow" oncommand="close();"/>
  63.         <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  64.         <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  65.         <command id="cmd_CustomizeToolbars" oncommand="CustomizeToolbar('help-toolbox');"/>
  66.         <command id="cmd_find" oncommand="onFindCmd();"/>
  67.         <command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
  68.         <command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>    
  69.         <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')"/>
  70.     </commandset>
  71.     <keyset id="keys">
  72.         <key id="goHome"      keycode="VK_HOME"  command="Help:Home" modifiers="alt"/>
  73.         <key id="goBackKb"    keycode="VK_LEFT"  command="Help:Back" modifiers="alt"/>
  74.         <key id="goForwardKb" keycode="VK_RIGHT" command="Help:Forward" modifiers="alt"/>
  75.         <key keycode="VK_BACK" command="Help:Back"/>
  76.         <key keycode="VK_BACK" command="Help:Forward" modifiers="shift"/>
  77.         <key id="printKb" key="&printCmd.commandkey;" oncommand="print();"
  78.             modifiers="accel"/>  
  79.         <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  80.         <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  81.         <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  82.         <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  83.         <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  84.         <key keycode="VK_F5" oncommand="reload();"/>
  85.         <key id="key_closeWindow" key="&closeWindow.commandkey;"
  86.             command="cmd_closeWindow" modifiers="accel"/>
  87.         <key id="key_closeWindow2" keycode="VK_ESCAPE"
  88.             command="cmd_closeWindow"/>
  89.         <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"
  90.             command="cmd_textZoomEnlarge" modifiers="accel"/>
  91.         <key id="key_textZoomEnlarge2" key="&textZoomEnlargeCmd.commandkey2;"
  92.             command="cmd_textZoomEnlarge" modifiers="accel"/>
  93.         <key id="key_textZoomReduce" key="&textZoomReduceCmd.commandkey;"
  94.             command="cmd_textZoomReduce" modifiers="accel"/>
  95.         <key id="key_textZoomReset" key="&textZoomResetCmd.commandkey;"
  96.             oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
  97.         <key id="key_toggleSidebar" keycode="VK_F9" command="Help:ToggleSidebar"/>
  98.         <key id="key_viewNextHelpPanel" keycode="VK_TAB"
  99.              oncommand="showRelativePanel(true);" modifiers="control"/>
  100.         <key id="key_viewPrevHelpPanel" keycode="VK_TAB"
  101.              oncommand="showRelativePanel(false);" modifiers="control,shift"/>
  102.     </keyset>
  103.     <stringbundle id="bundle_viewZoom"/>
  104.     <stringbundle id="findBundle"
  105.         src="chrome://global/locale/finddialog.properties"/>
  106.     <stringbundle id="bundle_help"
  107.         src="chrome://help/locale/help.properties"/>
  108.  
  109.     <vbox flex="1">
  110.  
  111.         <toolbox id="help-toolbox" class="toolbox-top" mode="icons" iconsize="small" customizable="true">
  112.  
  113.             <toolbarpalette id="HelpToolbarPalette">
  114.  
  115.                 <toolbarbutton id="help-sidebar-button"
  116.                     class="toolbarbutton-1"
  117.                     tooltiptext="&sidebarBtn.tooltip;"
  118.                     customizeable="true" label="&sidebarBtn.label;"
  119.                     command="Help:ToggleSidebar"/>
  120.                 <toolbarbutton id="help-back-button" type="menu-button"
  121.                         class="browserButton" label="&backButton.label;"
  122.                         oncommand="if (event.target==this) goBack(); else gotoHistoryIndex(event);"
  123.                         observes="canGoBack" context="backMenu"
  124.                         tooltiptext="&backButton.tooltip;">
  125.                     <menupopup context=""
  126.                         onpopupshowing="createBackMenu(event);"/>
  127.                 </toolbarbutton>
  128.                 <toolbarbutton id="help-forward-button" type="menu-button"
  129.                         class="browserButton"
  130.                         label="&forwardButton.label;"
  131.                         oncommand="if (event.target==this) goForward(); else gotoHistoryIndex(event);"
  132.                         tooltiptext="&forwardButton.tooltip;"
  133.                         observes="canGoForward">
  134.                     <menupopup context=""
  135.                         onpopupshowing="createForwardMenu(event);"/>
  136.                 </toolbarbutton>
  137.                 <toolbarbutton id="help-home-button"
  138.                     class="toolbarbutton-1" label="&homeButton.label;"
  139.                     tooltiptext="&homeButton.tooltip;"
  140.                     command="Help:Home"/>
  141.                 <toolbarbutton id="help-find-button"
  142.                     class="toolbarbutton-1" label="&findBtn.label;"
  143.                     command="cmd_find"/>
  144.                 <toolbarbutton id="help-zoom-small-button"
  145.                     class="toolbarbutton-1" label="&textZoomReduceBtn.label;"
  146.                     tooltiptext="&textZoomReduceBtn.tooltip;"
  147.                     command="cmd_textZoomReduce"/>
  148.                 <toolbarbutton id="help-zoom-large-button"
  149.                     class="toolbarbutton-1" label="&textZoomEnlargeBtn.label;"
  150.                     tooltiptext="&textZoomEnlargeBtn.tooltip;"
  151.                     command="cmd_textZoomEnlarge"/>
  152.                 <toolbarbutton id="help-print-button" class="browserButton"
  153.                     label="&printButton.label;"
  154.                     oncommand="print();"
  155.                     tooltiptext="&printButton.tooltip;"/>
  156.                 <toolbarbutton id="help-toolbar-customization" class="toolbarbutton-1"
  157.                     label="&cmd_CustomizeToolbars.label;"
  158.                     command="cmd_CustomizeToolbars"
  159.                     tooltiptext="&customizeButton.tooltip;"/>
  160.  
  161.                 <toolbaritem id="throbber-box" title="&throbberItem.title;"
  162.                     align="center" pack="center">
  163.                   <button id="help-throbber" tooltiptext="&homeButton.tooltip;"
  164.                     command="Help:Home"/>
  165.                 </toolbaritem>
  166.                 <toolbarbutton id="copy-button" class="toolbarbutton-1"
  167.                                label="©Cmd.label;" command="cmd_copy"
  168.                                tooltiptext="©Cmd.label;"/>
  169.             </toolbarpalette>
  170.             <toolbar id="helpToolbar" toolbarname="Help Toolbar" class="toolbar-primary
  171.                     chromeclass-toolbar" mode="icons" iconsize="small"
  172.                     customizable="true"
  173.                     defaultset="help-sidebar-button,separator,help-back-button,help-forward-button,help-home-button,separator,help-toolbar-customization,,separator,copy-button,spring,help-print-button,separator,spacer,throbber-box"
  174.                     context="toolbar-context-menu"/>
  175.             <toolbarset id="customToolbars"/>
  176.         </toolbox>
  177.  
  178.         <hbox flex="1">
  179.             <vbox id="helpsidebar-box" persist="width">
  180.  
  181.                 <toolbarbutton id="help-glossary-btn"
  182.                     class="box-texttab texttab-sidebar"
  183.                     label="&glossarytab.label;"
  184.                     oncommand="showPanel('help-glossary')"
  185.                     accesskey="&glossarytab.accesskey;"/>
  186.                 <tree id="help-glossary-panel" class="focusring"
  187.                         flex="1" hidecolumnpicker="true"
  188.                         hidden="true" datasources="rdf:null"
  189.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  190.                         ref="urn:root" flags="dont-build-content"
  191.                         onselect="onselect_loadURI(this)">
  192.                     <template>
  193.                         <rule>
  194.                             <conditions>
  195.                                 <content uri="?uri"/>
  196.                                 <triple subject="?uri"
  197.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  198.                                     object="?subheadings"/>
  199.                                 <member container="?subheadings"
  200.                                     child="?subheading"/>
  201.                             </conditions>
  202.                             <bindings>
  203.                                 <binding subject="?subheading"
  204.                                     predicate="http://home.netscape.com/NC-rdf#name"
  205.                                     object="?name"/>
  206.                             </bindings>
  207.  
  208.                             <action>
  209.                                 <treechildren>
  210.                                     <treeitem uri="?subheading">
  211.                                         <treerow>
  212.                                             <treecell label="?name"/>
  213.                                         </treerow>
  214.                                     </treeitem>
  215.                                 </treechildren>
  216.                             </action>
  217.                         </rule>
  218.                     </template>
  219.                     <treecols>
  220.                         <treecol id="GlossaryNameColumn" flex="1"
  221.                             hideheader="true" primary="true"/>
  222.                     </treecols>
  223.                 </tree>
  224.  
  225.                 <toolbarbutton id="help-index-btn" class="box-texttab texttab-sidebar"
  226.                     label="&indextab.label;"
  227.                     oncommand="showPanel('help-index');expandAllIndexEntries();"
  228.                     accesskey="&indextab.accesskey;"/>
  229.  
  230.                 <tree id="help-index-panel" class="focusring"
  231.                         flex="1" datasources="rdf:null"
  232.                         hidecolumnpicker="true" hidden="true"
  233.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  234.                         ref="urn:root"
  235.                         flags="dont-build-content dont-test-empty"
  236.                         onselect="onselect_loadURI(this)">
  237.                     <template>
  238.                         <rule>
  239.                             <conditions>
  240.                                 <content uri="?uri"/>
  241.                                 <triple subject="?uri"
  242.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  243.                                     object="?subheadings"/>
  244.                                 <member container="?subheadings"
  245.                                     child="?subheading"/>
  246.                             </conditions>
  247.                             <bindings>
  248.                                 <binding subject="?subheading"
  249.                                     predicate="http://home.netscape.com/NC-rdf#name"
  250.                                     object="?name"/>
  251.                             </bindings>
  252.  
  253.                             <action>
  254.                                 <treechildren>
  255.                                     <treeitem uri="?subheading">
  256.                                         <treerow>
  257.                                             <treecell label="?name"/>
  258.                                         </treerow>
  259.                                     </treeitem>
  260.                                 </treechildren>
  261.                             </action>
  262.                         </rule>
  263.                     </template>
  264.                     <treecols>
  265.                         <treecol id="IndexNameColumn" flex="1" hideheader="true"
  266.                             primary="true" sortActive="true"
  267.                             sortDirection="ascending" sort="?name"/>
  268.                     </treecols>
  269.                 </tree>
  270.  
  271.                 <toolbarbutton id="help-search-btn" class="box-texttab texttab-sidebar"
  272.                     label="&searchtab.label;"
  273.                     oncommand="showPanel('help-search')"
  274.                     accesskey="&searchtab.accesskey;"/>
  275.  
  276.                 <vbox id="help-search-panel" hidden="true" flex="1">
  277.                     <hbox align="center">
  278.                         <textbox id="findText" flex="1" oninput="doEnabling();"
  279.                             onkeypress="if ((event.keyCode
  280.                                 == KeyEvent.DOM_VK_ENTER) || (event.keyCode
  281.                                 == KeyEvent.DOM_VK_RETURN))
  282.                                 doFind();"/>
  283.                         <button id="findButton" default="true" disabled="true"
  284.                             label="&gobtn.label;" oncommand="doFind()"
  285.                             flex="0"/>
  286.                     </hbox>
  287.                     <tree id="help-search-tree" class="focusring"
  288.                             flex="1" hidecolumnpicker="true"
  289.                             datasources="rdf:null"
  290.                             containment="http://home.netscape.com/NC-rdf#child"
  291.                             ref="urn:root" flags="dont-build-content"
  292.                             onselect="onselect_loadURI(this)">
  293.                         <template>
  294.                             <rule>
  295.                                 <conditions>
  296.                                     <content uri="?uri"/>
  297.                                     <member container="?uri"
  298.                                         child="?subheading"/>
  299.                                 </conditions>
  300.  
  301.                                 <bindings>
  302.                                     <binding subject="?subheading"
  303.                                         predicate="http://home.netscape.com/NC-rdf#name"
  304.                                         object="?name"/>
  305.                                 </bindings>
  306.  
  307.                                 <action>
  308.                                     <treechildren>
  309.                                         <treeitem uri="?subheading">
  310.                                             <treerow>
  311.                                                 <treecell label="?name"/>
  312.                                             </treerow>
  313.                                         </treeitem>
  314.                                     </treechildren>
  315.                                 </action>
  316.                             </rule>
  317.                         </template>
  318.  
  319.                         <treecols>
  320.                             <treecol id="ResultsColumn" flex="1"
  321.                                 hideheader="true" primary="true"
  322.                                 sortActive="true" sortDirection="ascending"
  323.                                 sort="?name"/>
  324.                         </treecols>
  325.                     </tree>
  326.                 </vbox>
  327.  
  328.  
  329.                 <toolbarbutton id="help-toc-btn" class="box-texttab texttab-sidebar"
  330.                     label="&toctab.label;"
  331.                     oncommand="showPanel('help-toc')"
  332.                     accesskey="&toctab.accesskey;"/>
  333.                 <tree id="help-toc-panel" class="focusring"
  334.                         flex="1"  hidecolumnpicker="true"
  335.                         datasources="rdf:null"
  336.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  337.                         ref="urn:root" flags="dont-build-content"
  338.                         onselect="onselect_loadURI(this)">
  339.                     <template>
  340.                         <rule>
  341.                             <conditions>
  342.                                 <content uri="?uri"/>
  343.                                 <triple subject="?uri"
  344.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  345.                                     object="?subheadings"/>
  346.                                 <member container="?subheadings"
  347.                                     child="?subheading"/>
  348.                             </conditions>
  349.  
  350.                             <bindings>
  351.                                 <binding subject="?subheading"
  352.                                     predicate="http://home.netscape.com/NC-rdf#name"
  353.                                     object="?name"/>
  354.                             </bindings>
  355.  
  356.                             <action>
  357.                                 <treechildren>
  358.                                     <treeitem uri="?subheading">
  359.                                         <treerow>
  360.                                             <treecell label="?name"/>
  361.                                         </treerow>
  362.                                     </treeitem>
  363.                                 </treechildren>
  364.                             </action>
  365.                         </rule>
  366.                     </template>
  367.                     <treecols>
  368.                         <treecol id="NameColumn" flex="1" hideheader="true"
  369.                             primary="true"/>
  370.                     </treecols>
  371.                 </tree>
  372.  
  373.             </vbox>
  374.  
  375.             <splitter id="helpsidebar-splitter" collapse="before"
  376.                     persist="state hidden" autostretch="never" state="open">
  377.             </splitter>
  378.  
  379.             <vbox id="appcontent" flex="3">
  380.               <browser context="contentAreaContextMenu"
  381.                   type="content-primary" id="help-content"
  382.                   src="about:blank" flex="1"/>
  383.             </vbox>
  384.         </hbox>
  385.     </vbox>
  386. </window>
  387.